# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gitg
pkgver=3.32.1
pkgrel=5
pkgdesc="gitg is the GNOME GUI client to view git repositories"
url="https://wiki.gnome.org/Apps/Gitg"
arch="all !s390x !mips !mips64" # missing gtksourceview
license="GPL-2.0-or-later"
depends="gsettings-desktop-schemas"
makedepends="meson libsoup-dev libgee-dev glib-dev gobject-introspection-dev vala
	gsettings-desktop-schemas-dev libpeas-dev libgit2-glib-dev gtk+3.0-dev libsecret-dev
	libxml2-dev libdazzle-dev gtkspell3-dev gtksourceview-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/gitg/${pkgver%.*}/gitg-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="243e630b3e5bb1919dc307e6b3fed1b1b0e3884d2a2507e4526b4af61e86f1cd7004a3dbb96001ffb0280cefe7cdb9b109c39996718913c7410224830c0145a4  gitg-3.32.1.tar.xz"
